package day06.ZiXi;

public class System01 {
    public static void main(String[] args) {
        //public   static void exit(int status)
        System.out.println(123456789);
        //System.exit(0);
        //当代码执行到这个方法是，虚拟机就已经停止了
        System.out.println(654321);
        //public   static long currentTimeMillis() 返回当前时间(以毫秒为单位)
        long a = System.currentTimeMillis();
        //System.out.println(l);
        for (int i = 0; i < 10000; i++) {
            System.out.println(i);
        }
        long b = System.currentTimeMillis();
        System.out.println( b - a );
        //arraycopy
        int [] arr1={1,2,3,4,5};
        int [] arr2= new int[10];
        System.arraycopy(arr1,0,arr2,0,arr1.length);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
            
        }
    }
}